export const filterMixin = {
	data() {
		return {
			// 经验要求
			experice: [
				{name: '不限'},
				{name: '在校/应届'},
				{name: '1年以内'},
				{name: '1-3年'},
				{name: '3-5年'},
				{name: '5-10年'},
				{name: '10年以上'}
			],
			// 学历要求
			education: [
				{name: '不限'},
				{name: '初中及以下'},
				{name: '中专/中技'},
				{name: '高中'},
				{name: '大专'},
				{name: '本科'},
				{name: '硕士'},
				{name: '博士'},
			],
			// 薪资
			pay: [
				{name: '不限'},
				{name: '3K以下'},
				{name: '3-5K'},
				{name: '5-10K'},
				{name: '10-20K'},
				{name: '20-50K'},
				{name: '50K以上'},
			],
			// 公司规模
			scaleOfCompany: [
				{name: '不限'},
				{name: '0-20人'},
				{name: '20-99人'},
				{name: '100-499人'},
				{name: '500-999人'},
				{name: '1000-9999人'},
				{name: '10000人以上'},
			]
		}
	},
	methods: {
		init() {
			this.disposeSourceData(this.experice, this.education, this.pay, this.scaleOfCompany)
		},
		
		// 处理原始数据
		disposeSourceData(...args) {
			for(let i = 0; i < args.length; i++) {
				args[i]['checked'] = false
				args[i][0]['checked'] = true
			}
		}
	}
}